package g11.model;

import java.io.Serializable;

public class User implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1897762496666523360L;
	private String username;
	private byte type;
	private int id;
	private String password;
	private String name;

	public User() {
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public byte getType() {
		return type;
	}

	public void setType(byte type) {
		this.type = type;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public boolean equals(Object obj) {
		/*
		 * add by Fern
		 */
		User other = (User) obj;
		if (this.id == other.id) {
			return true;
		} else

			return false;
	}

	@Override
	public String toString() {
		return "User [username=" + username + ", type=" + type + ", id=" + id
				+ ", password=" + password + ", name=" + name + "]";
	}

}
